package com.jcf.springboot.entity.business;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author jjj
 * @since 2021-03-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="FilmInfo对象", description="")
public class FilmInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "film_id", type = IdType.ID_WORKER_STR)
    private String filmId;

    private String filmName;

    private String filmEnName;

    private BigDecimal filmScore;

    @ApiModelProperty(value = "上映时间")
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    private Date filmShowTime;

    private String filmPicture;

    private String filmAge;

    private String filmArea;

    private Integer filmLength;

    @ApiModelProperty(value = "上映状态")
    private String filmStatus;

    private String filmSummary;

    private String stills;

    private Boolean isDeleted;

    private Date createTime;

    private Date modifyTime;

    //一对多字段

    @TableField(exist = false)
    private List<Actor> actorList;

    @TableField(exist = false)
    private List<Director> directorList;

    @TableField(exist = false)
    private List<Category> categoryList;

    //多对一字段
    @TableField(exist = false)
    private FilmArea area;



}
